package org.ecloud;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/** 
 * 工具服务-主类
 *
 * <pre> 
 * project: ecloud-validator
 * author: eddy
 * email: xqxyxchy@126.com
 * date: 2018年3月5日-下午9:05:04
 * rights: eddy
 * </pre>
 */
@SpringBootApplication
@EnableDiscoveryClient
public class ValidatorApplication implements CommandLineRunner {

	private static Logger logger = LoggerFactory.getLogger(ValidatorApplication.class);
	
	public static void main(String[] args) throws IOException {
		logger.info("Starting validator.");
		SpringApplication.run(ValidatorApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		logger.info("Started validator.");
	}

}